package BehavioralModel.ObserverModel;

/**
 * @author 王蕾 [wanglei_dev@cyou-inc.com]
 * @date 2017-11-28 11:58:00
 */
public class Client {



    public static void main(String[] args) {
        SecretarySubject secretary  = new SecretarySubject();

        StockObserver stockObserver = new StockObserver("曲修成", secretary);

        NBAOberver nbaOberver = new NBAOberver("王蕾",secretary);

        secretary.addObserver(stockObserver);
        secretary.addObserver(nbaOberver);

        secretary.setAction("Boss come");
        secretary.inform();
    }
}
